/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - geometry/mesh
// Copyright( c) 2015.  All Rights Reserved
//
// File:		AEStaticMesh.inl
// Author:		Gianluca Belardelli
// Date:		05/05/2015
//
/////////////////////////////////////////////////////////////////////////
#ifndef _AESTATICMESH_INL_
#define _AESTATICMESH_INL_

AE_FORCEINLINE AEStaticSubmesh *AEStaticMesh::GetSubmesh( AEINT32 nMeshIndex ) const
{ 
  AEASSERT( nMeshIndex >= 0 && nMeshIndex < m_nNumSubmeshes ); 
  return &( m_lpSubmeshes[ nMeshIndex ] ); 
}

AE_FORCEINLINE AEStaticMeshInstance *AEStaticMesh::CreateInstance( const AEMatrix4f &matTransform )
{
	return CreateInstance( matTransform, AENULL );
}

#endif // _AESTATICMESH_INL_
